@foreach(navigatorSort($navbars) as $nav)
    <li class="{{ $nav['selected'] ? 'active' : '' }} {{ !empty($nav['nodes']) ? 'wz-has-child' : '' }}"
        data-type="{{ $nav['type'] }}">
        @if(empty($nav['nodes']))
            @if($nav['type']=="swagger")
                <a class="fa fa-code wz-nav-fold" href="javascript:;"></a>
            @elseif($nav['type']=="markdown")
                <a class="fa fa-file-text-o wz-nav-fold" href="javascript:;"></a>
            @else
                <a class="fa fa-table wz-nav-fold" href="javascript:;"></a>
            @endif
        @else
            <a class="fa fa-folder-o wz-nav-fold" href="javascript:;"></a>
        @endif
        <a href="{{ $nav['url'] }}" title="{{ $nav['name'] }}" class="wz-nav-item">
            {{ $nav['name'] }}
        </a>

        @if(!empty($nav['nodes']))
            <ul>
                @include('components.navbar', ['navbars' => $nav['nodes']])
            </ul>
        @endif
    </li>
@endforeach